package studentinformationmanagementsystem.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 苗庆
 * @version 1.0
 * 选修课程表实体类
 */
public class TakeACourse implements Serializable {
    private static final long serialVersionUID = 1L;

    //学生选课表id
    private Integer takeacourseid;

    //学生表id
    private Integer studid;

    //选课临时班级表id
    private Integer temporaryclasstableid;

    //成绩
    private String achievement;

    public TakeACourse() {

    }

    public TakeACourse(Integer takeacourseid, Integer studid, Integer temporaryclasstableid, String achievement) {
        this.takeacourseid = takeacourseid;
        this.studid = studid;
        this.temporaryclasstableid = temporaryclasstableid;
        this.achievement = achievement;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TakeACourse that = (TakeACourse) o;
        return takeacourseid.equals(that.takeacourseid);
    }

    @Override
    public String toString() {
        return "TakeACourse{" +
                "takeacourseid=" + takeacourseid +
                ", studid=" + studid +
                ", temporaryclasstableid=" + temporaryclasstableid +
                ", achievement='" + achievement + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        return Objects.hash(takeacourseid);
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTakeacourseid() {
        return takeacourseid;
    }

    public void setTakeacourseid(Integer takeacourseid) {
        this.takeacourseid = takeacourseid;
    }

    public Integer getStudid() {
        return studid;
    }

    public void setStudid(Integer studid) {
        this.studid = studid;
    }

    public Integer getTemporaryclasstableid() {
        return temporaryclasstableid;
    }

    public void setTemporaryclasstableid(Integer temporaryclasstableid) {
        this.temporaryclasstableid = temporaryclasstableid;
    }

    public String getAchievement() {
        return achievement;
    }

    public void setAchievement(String achievement) {
        this.achievement = achievement;
    }
}
